package net.neptech.model.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author Saya
 * @Date 2025/8/20 17:14
 * @Description TODO
 **/

@Entity
@Table(name = "ins_oper_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ins_oper_record")
public class InstanceOperRecord {
    @TableField("id")
    @Id
    @TableId

    @GeneratedValue(strategy = GenerationType.UUID)
    private String id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 流程id
     */
    @TableField("flow_id")
    private String flowId;

    /**
     * 节点id
     */
    @TableField("node_id")
    private String nodeId;

    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;

    /**
     * 流程实例id
     */
    @TableField("process_instance_id")
    private String processInstanceId;

    /**
     * 评论内容
     */
    @TableField("comment")
    private String comment;

    /**
     * 操作类型
     */
    @TableField("oper_type")
    private String operType;

    /**
     * 操作描述
     */
    @TableField("oper_desc")
    private String operDesc;

    /**
     * 图片列表
     */
    @TableField("image_list")
    private String imageList;

    /**
     * 文件列表
     */
    @TableField("file_list")
    private String fileList;
    /**
     * 逻辑删除字段
     */
    @TableField("deleted")
    @Column(name = "deleted")
    private Boolean deleted;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @Column(name = "update_time")
    private Date updateTime;
}
